{include file="public/user_head" /}
<body>
<div class="page-body">
    {include file="public/user_dh" /}


    <form class="form-horizontal">
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">会员账号</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="123456" disabled id="x9" class="personal-info-line personal-info-input" placeholder="" />
    </div>
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">真实姓名</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="123"  id="x1" class="personal-info-line personal-info-input" placeholder="真实姓名（必填）" />
    </div>
    <!--
<div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">性别</span>
        <label class="personal-info-line-split">:</label>
       <input  id="x8"  type="radio" name="sex" value = "1" style="width:30px !important;"     >男
  <input  id="x8"  type="radio" name="sex" value = "0"  style="width:30px !important;"   checked >女
    </div>
    -->
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">身份证号码</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="342522199001151123"  id="x14" class="personal-info-line personal-info-input" placeholder="身份证号码（必填）" />
    </div>
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">所属银行</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="中国建设银行"  id="x13" class="personal-info-line personal-info-input" placeholder="所属银行（必填）" />
    </div>
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">银行卡账号</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="123456 65664645"  id="x2" class="personal-info-line personal-info-input" placeholder="您的银行卡账号（必填）" />
    </div>
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">银行卡姓名</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="王丽"  id="x3" class="personal-info-line personal-info-input" placeholder="您的银行卡姓名（必填）" />
    </div>

    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">微信号</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="12312"  id="x11" class="personal-info-line personal-info-input" placeholder="您的微信号（必填）"/>
    </div>
    <!--
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">手机号</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="12345678910"  id="x7" class="personal-info-line personal-info-input" placeholder="您的真实手机号码（必填）" />
    </div>
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">收货人</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="undefined"  id="x6" class="personal-info-line personal-info-input" placeholder="您的默认收货人" />
    </div>
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">收货地址</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="undefined"  id="x4" class="personal-info-line personal-info-input" placeholder="您的默认收货地址" />
    </div>
    <div class="personal-info-item">
        <span id="ctl00_body_Label1" class="personal-info-line personal-info-label">邮编</span>
        <label class="personal-info-line-split">:</label>
        <input name="ctl00$body$TextBox1" type="text" value="undefined"  id="x5" class="personal-info-line personal-info-input" placeholder="您的邮编地址" />
    </div>
-->
    <input type="submit" name="ctl00$body$Sub" value="确认提交" id="ctl00_body_Sub" class="friend-new-sub xiugai1_go" />

</form>


    <script>
        $("#mlindex").addClass("btn-long16");


        $(".xiugai1_go").click(function () {
            xiugai1_go();
            return false;
        });



        //检查号码是否符合规范，包括长度，类型
        isCardNo = function(card)
        {
            //身份证号码为15位或者18位，15位时全为数字，18位前17位为数字，最后一位是校验位，可能为数字或字符X
            var reg = /(^\d{15}$)|(^\d{17}(\d|X)$)/;
            if(reg.test(card) === false)
            {
                return false;
            }

            return true;
        }






        function xiugai1_go(){
            var x1=$("#x1").val();
            var x2=$("#x2").val();
            var x3=$("#x3").val();
            var x4=$("#x4").val();
            var x5=$("#x5").val();
            var x6=$("#x6").val();
            var x7=$("#x7").val();
            var x8=$("#x8").val();
            var x9=$("#x9").val();
            var x10=$("#x10").val();
            var x11=$("#x11").val();
            var x12=$("#x12").val();
            var x13=$("#x13").val();
            var x14=$("#x14").val();


            if($("#x1").val()==""){
                tishi4("请填写真实姓名",'#x1');
                return false;
            }
            if($("#x13").val()==""){
                tishi4("请填写所属银行",'#x13');
                return false;
            }
            if($("#x2").val()==""){
                tishi4("请填写银行卡账号",'#x2');
                return false;
            }
            if($("#x3").val()==""){
                tishi4("请填写银行卡姓名",'#x3  ');
                return false;
            }
            if($("#x11").val()==""){
                tishi4("请填写微信号",'#x11');
                return false;
            }
            if($("#x14").val()==""){
                tishi4("请填写身份证号码",'#x14');
                return false;
            }
            //校验长度，类型
            if(isCardNo($("#x14").val()) === false)
            {
                tishi4('您输入的身份证号码不正确，请重新输入','#x14');
                return false;
            }


            /*
            if($("#x7").val()==""){
                tishi4("请填写真实手机号码",'#x7');
                return false;
                }
            if(!checkMobile($("#x7").val())){
                    tishi4('请填写正确的手机号码','#x7')
                    return false;
                    }
            */
            tishi2();
            $.get("/member/bin.php?act=pi&fullname="+encodeURI(x1)+"&alipayUserName="+encodeURI(x2)+"&alipayFullName="+encodeURI(x3)+"&addrAddress="+encodeURI(x4)+"&addrPostcode="+encodeURI(x5)+"&addrFullName="+encodeURI(x6)+"&addrTel="+encodeURI(x7)+"&sex="+encodeURI(x8)+"&mobile="+encodeURI(x9)+"&alipay="+encodeURI(x10)+"&weixin="+encodeURI(x11)+"&baidupay="+encodeURI(x12)+"&bankName="+encodeURI(x13)+"&idcard="+encodeURI(x14),function(e){
                tishi2close();
                if(e!=""){
                    layer.msg(unescape(e));
                }
            },'html');
        }

        $(".xiugai2_go").click(function () {
            xiugai2_go();
            return false;
        });

        function xiugai2_go(){
            var x1=$("#x21").val();
            var x2=$("#x22").val();
            var x3=$("#x23").val();
            if(!checkPwd(x1)){
                tishi4('请输入6-30位密码','#x21')
                return false;
            }
            if(!checkPwd(x2)){
                tishi4('请输入6-30位密码','#x22')
                return false;
            }
            if(!checkPwd(x3)){
                tishi4('请输入6-30位密码','#x23')
                return false;
            }
            if(x2!=x3){
                tishi4('两次密码输入不一致','#x23')
                return false;
            }
            tishi2();
            $.get("/member/bin.php?act=pi_pwd&pwd="+encodeURI(x1)+"&pwd2="+encodeURI(x2)+"&pwd3="+encodeURI(x3),function(e){
                tishi2close();
                if(e!=""){
                    e4 = e.substr(0,4);
                    if(e4 == '更新成功'){
                        layer.msg(unescape(e),function(){
                            window.location.reload();
                        });
                    }else{
                        layer.msg(unescape(e));
                    }
                }
            },'html');

        }
        $(".xiugai3_go").click(function () {
            xiugai3_go();
            return false;
        });

        function xiugai3_go(){
            var x1=$("#x31").val();
            var x2=$("#x32").val();
            var x3=$("#x33").val();
            if(!checkPwd(x1)){
                tishi4('请输入6-30位密码','#x31')
                return false;
            }
            if(!checkPwd(x2)){
                tishi4('请输入6-30位密码','#x32')
                return false;
            }
            if(!checkPwd(x3)){
                tishi4('请输入6-30位密码','#x33')
                return false;
            }
            if(x2!=x3){
                tishi4('两次密码输入不一致','#x33')
                return false;
            }
            tishi2();
            $.get("/member/bin.php?act=pi_pwdII&pwd="+encodeURI(x1)+"&pwd2="+encodeURI(x2)+"&pwd3="+encodeURI(x3),function(e){
                tishi2close();
                if(e!=""){
                    e4 = e.substr(0,4);
                    if(e4 == '更新成功'){
                        layer.msg(unescape(e),function(){
                            window.location.reload();
                        });
                    }else{
                        layer.msg(unescape(e));
                    }
                }
            },'html');

        }
    </script>

</div>
<script type="text/javascript">
    $(".head-icon-left").on("click", function () {
        window.history.go(-1);
    });
</script>
{include file="public/footer" /}
</body>
</html>